package com.zc.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zc.dao.UserInfoMapper;
import com.zc.po.UserInfo;
import com.zc.service.UserInfoService;

@Service
public class UserInfoServiceImpl implements UserInfoService {
	@Autowired
	private UserInfoMapper userInfoMapper;

	@Override
	public UserInfo selectByPrimaryKey(String username) {
		UserInfo userInfo = userInfoMapper.selectByPrimaryKey(username);
		return userInfo;
	}

	@Override
	public UserInfo selectByNo(String comployeeNo) {
		UserInfo userInfo = userInfoMapper.selectByNo(comployeeNo);
		return userInfo;
	}

	@Override
	public void updateByPrimaryKeySelective(UserInfo ui) {
		userInfoMapper.updateByPrimaryKeySelective(ui);
		
	}

	@Override
	public void insertSelective(UserInfo ui) {
		userInfoMapper.insertSelective(ui);
		
	}
}
